<!-- HTML header for doxygen 1.11.0-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: Getting started</title>
<link rel="icon" href="doxygen.ico" type="image/x-icon" />
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen_manual.css" rel="stylesheet" type="text/css"/>
<link href="extra.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><a href="../index.html"><img alt="Logo" src="doxygen_logo.svg" height="35px"/></a></td>
  <td class="menu-item"><a href="index.html">Docs</a></td>
  <td class="menu-item"><a href="changelog.html">Changelog</a></td>
  <td class="menu-item"><a href="../helpers.html">Extensions</a></td>
  <td class="menu-item"><a href="../examples.html">Examples</a></td>
  <td class="menu-spacer">&#160;</td>
  <td class="menu-item" id="download">
      <img class="download-icon" src="../assets/download.svg" width="16px" height="16px" alt="Download doxygen"/>
      <a href="../download.html">Download</a>
  </td>
  <td class="menu-item" id="donate">
     <form action="https://www.paypal.com/cgi-bin/webscr" method="post" class="nav-item d-inline-flex px-1 mx-1">
       <input type="hidden" name="cmd" value="_donations" />
       <input type="hidden" value="doxygen@gmail.com" name="business" />
       <input type="hidden" name="bn" value="PP-DonationsBF:btn_donate_LG.gif:NonHosted" />
       <input type="hidden" name="lc" value="US" />
       <input type="hidden" name="tax" value="0" />
       <input type="hidden" name="item_name" value="Doxygen donation" />
       <input type="hidden" name="no_shipping" value="1" />
       <table class="donate">
         <tr>
           <td class="donate-button"><input type="image" width="74" height="21"
               src="https://www.paypal.com/en_GB/i/btn/btn_donate_SM.gif" border="0" name="submit"
               alt="Donate to Doxygen with PayPal!" /></td>
         </tr>
         <tr>
           <td class="currency"><select size="1" name="currency_code">
               <option selected="selected" value="EUR">&euro; (EUR)</option>
               <option value="USD">$ (USD)</option>
             </select></td>
         </tr>
       </table>
     </form>
   </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
     <div id="nav-tree-ads-carbon">
       <script async type="text/javascript" src="https://cdn.carbonads.com/carbon.js?serve=CK7DTK3M&placement=stacknl" id="_carbonads_js"></script>
     </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('starting.html',''); initResizable(true); });
/* @license-end */
</script>
<div id="doc-content">
<div><div class="header">
  <div class="headertitle"><div class="title">Getting started</div></div>
</div><!--header-->
<div class="contents">
<div class="toc"><h3>Table of Contents</h3>
<ul><li class="level1"><a href="starting.html#step0">Step 0: Check if doxygen supports your programming/hardware description language</a></li>
<li class="level1"><a href="starting.html#step1">Step 1: Creating a configuration file</a></li>
<li class="level1"><a href="starting.html#step2">Step 2: Running doxygen</a><ul><li class="level2"><a href="starting.html#html_out">HTML output</a></li>
<li class="level2"><a href="starting.html#latex_out">LaTeX output</a></li>
<li class="level2"><a href="starting.html#rtf_out">RTF output</a></li>
<li class="level2"><a href="starting.html#xml_out">XML output</a></li>
<li class="level2"><a href="starting.html#man_out">Man page output</a></li>
<li class="level2"><a href="starting.html#docbook_out">DocBook output</a></li>
</ul>
</li>
<li class="level1"><a href="starting.html#step3">Step 3: Documenting the sources</a></li>
</ul>
</div>
<div class="textblock"><p>The executable <code>doxygen</code> is the main program that parses the sources and generates the documentation. See section <a class="el" href="doxygen_usage.html">Doxygen usage</a> for more detailed usage information.</p>
<p>Optionally, the executable <code>doxywizard</code> can be used, which is a <a class="el" href="doxywizard_usage.html">graphical front-end</a> for editing the configuration file that is used by doxygen and for running doxygen in a graphical environment. For Mac OS X doxywizard will be started by clicking on the doxygen application icon.</p>
<p>The following figure shows the relation between the tools and the flow of information between them (it looks complex but that's only because it tries to be complete):</p>
<div class="image">
<img src="infoflow.png" alt=""/>
<div class="caption">
Doxygen information flow</div></div>
 <h1><a class="anchor" id="step0"></a>
Step 0: Check if doxygen supports your programming/hardware description language</h1>
<p>First, assure that your programming/hardware description language has a reasonable chance of being recognized by doxygen. These programming languages are supported by default: C, C++, Lex, C#, Objective-C, IDL, Java, PHP, Python, Fortran and D. Doxygen also supports the hardware description language VHDL by default. It is possible to configure certain file type extensions to use certain parsers: see the <a class="el" href="config.html#cfg_extension_mapping">Configuration/ExtensionMappings</a> for details. Also, completely different languages can be supported by using preprocessor programs: see the <a href="https://www.doxygen.org/helpers.html">Helpers page</a> for details.</p>
<h1><a class="anchor" id="step1"></a>
Step 1: Creating a configuration file</h1>
<p>Doxygen uses a configuration file to determine all of its settings. Each project should get its own configuration file. A project can consist of a single source file, but can also be an entire source tree that is recursively scanned.</p>
<p>To simplify the creation of a configuration file, doxygen can create a template configuration file for you. To do this call <code>doxygen</code> from the command line with the <code>-g</code> option: </p><pre class="fragment">doxygen -g &lt;config-file&gt;
</pre><p>where &lt;config-file&gt; is the name of the configuration file. If you omit the file name, a file named <code>Doxyfile</code> will be created. If a file with the name &lt;config-file&gt; already exists, doxygen will rename it to &lt;config-file&gt;.bak before generating the configuration template. If you use <code>-</code> (i.e. the minus sign) as the file name then doxygen will try to read the configuration file from standard input (<code>stdin</code>), which can be useful for scripting.</p>
<p>The configuration file has a format that is similar to that of a (simple) Makefile. It consists of a number of assignments (tags) of the form:</p>
<p><code>TAGNAME = VALUE</code> or <br  />
 <code>TAGNAME = VALUE1 VALUE2 ... </code><br  />
</p>
<p>You can probably leave the values of most tags in a generated template configuration file to their default value. See section <a class="el" href="config.html">Configuration</a> for more details about the configuration file.</p>
<p>If you do not wish to edit the configuration file with a text editor, you should have a look at <a class="el" href="doxywizard_usage.html">doxywizard</a>, which is a GUI front-end that can create, read and write doxygen configuration files, and allows setting configuration options by entering them via dialogs.</p>
<p>For a small project consisting of a few C and/or C++ source and header files, you can leave <a class="el" href="config.html#cfg_input">INPUT</a> tag empty and doxygen will search for sources in the current directory.</p>
<p>If you have a larger project consisting of a source directory or tree you should assign the root directory or directories to the <a class="el" href="config.html#cfg_input">INPUT</a> tag, and add one or more file patterns to the <a class="el" href="config.html#cfg_file_patterns">FILE_PATTERNS</a> tag (for instance <code>*.cpp *.h</code>). Only files that match one of the patterns will be parsed (if the patterns are omitted a list of typical patterns is used for the types of files doxygen supports). For recursive parsing of a source tree you must set the <a class="el" href="config.html#cfg_recursive">RECURSIVE</a> tag to <code>YES</code>. To further fine-tune the list of files that is parsed the <a class="el" href="config.html#cfg_exclude">EXCLUDE</a> and <a class="el" href="config.html#cfg_exclude_patterns">EXCLUDE_PATTERNS</a> tags can be used. To omit all <code>test</code> directories from a source tree for instance, one could use:</p>
<pre class="fragment">EXCLUDE_PATTERNS = */test/*
</pre><p><a class="anchor" id="default_file_extension_mapping"></a>Doxygen looks at the file's extension to determine how to parse a file, using the following table:</p>
<table class="markdownTable">
<tr class="markdownTableHead">
<th class="markdownTableHeadRight">Extension   </th><th class="markdownTableHeadNone">Language   </th><th class="markdownTableHeadRight">Extension   </th><th class="markdownTableHeadNone">Language   </th><th class="markdownTableHeadRight">Extension   </th><th class="markdownTableHeadNone">Language    </th></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyRight">.dox   </td><td class="markdownTableBodyNone">C / C++   </td><td class="markdownTableBodyRight">.HH   </td><td class="markdownTableBodyNone">C / C++   </td><td class="markdownTableBodyRight">.py   </td><td class="markdownTableBodyNone">Python    </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyRight">.doc   </td><td class="markdownTableBodyNone">C / C++   </td><td class="markdownTableBodyRight">.hxx   </td><td class="markdownTableBodyNone">C / C++   </td><td class="markdownTableBodyRight">.pyw   </td><td class="markdownTableBodyNone">Python    </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyRight">.c   </td><td class="markdownTableBodyNone">C / C++   </td><td class="markdownTableBodyRight">.hpp   </td><td class="markdownTableBodyNone">C / C++   </td><td class="markdownTableBodyRight">.f   </td><td class="markdownTableBodyNone">Fortran    </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyRight">.cc   </td><td class="markdownTableBodyNone">C / C++   </td><td class="markdownTableBodyRight">.h++   </td><td class="markdownTableBodyNone">C / C++   </td><td class="markdownTableBodyRight">.for   </td><td class="markdownTableBodyNone">Fortran    </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyRight">.cxx   </td><td class="markdownTableBodyNone">C / C++   </td><td class="markdownTableBodyRight">.mm   </td><td class="markdownTableBodyNone">C / C++   </td><td class="markdownTableBodyRight">.f90   </td><td class="markdownTableBodyNone">Fortran    </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyRight">.cpp   </td><td class="markdownTableBodyNone">C / C++   </td><td class="markdownTableBodyRight">.txt   </td><td class="markdownTableBodyNone">C / C++   </td><td class="markdownTableBodyRight">.f95   </td><td class="markdownTableBodyNone">Fortran    </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyRight">.c++   </td><td class="markdownTableBodyNone">C / C++   </td><td class="markdownTableBodyRight">.idl   </td><td class="markdownTableBodyNone">IDL   </td><td class="markdownTableBodyRight">.f03   </td><td class="markdownTableBodyNone">Fortran    </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyRight">.cppm   </td><td class="markdownTableBodyNone">C / C++   </td><td class="markdownTableBodyRight">.ddl   </td><td class="markdownTableBodyNone">IDL   </td><td class="markdownTableBodyRight">.f08   </td><td class="markdownTableBodyNone">Fortran    </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyRight">.ccm   </td><td class="markdownTableBodyNone">C / C++   </td><td class="markdownTableBodyRight">.odl   </td><td class="markdownTableBodyNone">IDL   </td><td class="markdownTableBodyRight">.f18   </td><td class="markdownTableBodyNone">Fortran    </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyRight">.cxxm   </td><td class="markdownTableBodyNone">C / C++   </td><td class="markdownTableBodyRight">.java   </td><td class="markdownTableBodyNone">Java   </td><td class="markdownTableBodyRight">.vhd   </td><td class="markdownTableBodyNone">VHDL    </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyRight">.c++m   </td><td class="markdownTableBodyNone">C / C++   </td><td class="markdownTableBodyRight">.cs   </td><td class="markdownTableBodyNone">C#   </td><td class="markdownTableBodyRight">.vhdl   </td><td class="markdownTableBodyNone">VHDL    </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyRight">.ii   </td><td class="markdownTableBodyNone">C / C++   </td><td class="markdownTableBodyRight">.d   </td><td class="markdownTableBodyNone">D   </td><td class="markdownTableBodyRight">.ucf   </td><td class="markdownTableBodyNone">VHDL    </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyRight">.ixx   </td><td class="markdownTableBodyNone">C / C++   </td><td class="markdownTableBodyRight">.php   </td><td class="markdownTableBodyNone">PHP   </td><td class="markdownTableBodyRight">.qsf   </td><td class="markdownTableBodyNone">VHDL    </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyRight">.ipp   </td><td class="markdownTableBodyNone">C / C++   </td><td class="markdownTableBodyRight">.php4   </td><td class="markdownTableBodyNone">PHP   </td><td class="markdownTableBodyRight">.l   </td><td class="markdownTableBodyNone">Lex    </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyRight">.i++   </td><td class="markdownTableBodyNone">C / C++   </td><td class="markdownTableBodyRight">.php5   </td><td class="markdownTableBodyNone">PHP   </td><td class="markdownTableBodyRight">.md   </td><td class="markdownTableBodyNone">Markdown    </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyRight">.inl   </td><td class="markdownTableBodyNone">C / C++   </td><td class="markdownTableBodyRight">.inc   </td><td class="markdownTableBodyNone">PHP   </td><td class="markdownTableBodyRight">.markdown   </td><td class="markdownTableBodyNone">Markdown    </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyRight">.h   </td><td class="markdownTableBodyNone">C / C++   </td><td class="markdownTableBodyRight">.phtml   </td><td class="markdownTableBodyNone">PHP   </td><td class="markdownTableBodyRight">.ice   </td><td class="markdownTableBodyNone">Slice    </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyRight">.H   </td><td class="markdownTableBodyNone">C / C++   </td><td class="markdownTableBodyRight">.m   </td><td class="markdownTableBodyNone">Objective-C   </td><td class="markdownTableBodyRight">&#160;   </td><td class="markdownTableBodyNone">&#160;    </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyRight">.hh   </td><td class="markdownTableBodyNone">C / C++   </td><td class="markdownTableBodyRight">.M   </td><td class="markdownTableBodyNone">Objective-C   </td><td class="markdownTableBodyRight">&#160;   </td><td class="markdownTableBodyNone">&#160;   </td></tr>
</table>
<p>Please note that the above list might contain more items than that by default set in the <a class="el" href="config.html#cfg_file_patterns">FILE_PATTERNS</a>.</p>
<p>Any extension that is not parsed can be set by adding it to <a class="el" href="config.html#cfg_file_patterns">FILE_PATTERNS</a> and when the appropriate <a class="el" href="config.html#cfg_extension_mapping">EXTENSION_MAPPING</a> is set.</p>
<p><a class="anchor" id="extract_all"></a>If you start using doxygen for an existing project (thus without any documentation that doxygen is aware of), you can still get an idea of what the structure is and how the documented result would look like. To do so, you must set the <a class="el" href="config.html#cfg_extract_all">EXTRACT_ALL</a> tag in the configuration file to <code>YES</code>. Then, doxygen will pretend everything in your sources is documented. Please note that as a consequence warnings about undocumented members will not be generated as long as <a class="el" href="config.html#cfg_extract_all">EXTRACT_ALL</a> is set to <code>YES</code>.</p>
<p>To analyze an existing piece of software it is useful to cross-reference a (documented) entity with its definition in the source files. Doxygen will generate such cross-references if you set the <a class="el" href="config.html#cfg_source_browser">SOURCE_BROWSER</a> tag to <code>YES</code>. It can also include the sources directly into the documentation by setting <a class="el" href="config.html#cfg_inline_sources">INLINE_SOURCES</a> to <code>YES</code> (this can be handy for code reviews for instance).</p>
<h1><a class="anchor" id="step2"></a>
Step 2: Running doxygen</h1>
<p>To generate the documentation you can now enter: </p><pre class="fragment">doxygen &lt;config-file&gt;
</pre><p>Depending on your settings doxygen will create <code>html</code>, <code>rtf</code>, <code>latex</code>, <code>xml</code>, <code>man</code>, and/or docbook directories inside the output directory. As the names suggest these directories contain the generated documentation in HTML, RTF, <img class="formulaInl" alt="{\LaTeX}" src="form_0.png" width="34" height="13"/> , XML, Unix-Man page, and DocBook format.</p>
<p>The default output directory is the directory in which <code>doxygen</code> is started. The root directory to which the output is written can be changed using the <a class="el" href="config.html#cfg_output_directory">OUTPUT_DIRECTORY</a>. The format specific directory within the output directory can be selected using the <a class="el" href="config.html#cfg_html_output">HTML_OUTPUT</a>, <a class="el" href="config.html#cfg_rtf_output">RTF_OUTPUT</a>, <a class="el" href="config.html#cfg_latex_output">LATEX_OUTPUT</a>, <a class="el" href="config.html#cfg_xml_output">XML_OUTPUT</a>, <a class="el" href="config.html#cfg_man_output">MAN_OUTPUT</a>, and <a class="el" href="config.html#cfg_docbook_output">DOCBOOK_OUTPUT</a>. tags of the configuration file. If the output directory does not exist, <code>doxygen</code> will try to create it for you (but it will <em>not</em> try to create a whole path recursively, like <code>mkdir -p</code> does).</p>
<h2><a class="anchor" id="html_out"></a>
HTML output</h2>
<p><a id="a12_browser" name="a12_browser"></a> The generated HTML documentation can be viewed by pointing a HTML browser to the <code>index.html</code> file in the <code>html</code> directory. For the best results a browser that supports cascading style sheets (CSS) should be used (I'm using Mozilla Firefox, Google Chrome, Safari, and sometimes IE8, IE9, and Opera to test the generated output).</p>
<p>Some of the features the HTML section (such as <a class="el" href="config.html#cfg_generate_treeview">GENERATE_TREEVIEW</a> or the search engine) require a browser that supports Dynamic HTML and JavaScript enabled.</p>
<h2><a class="anchor" id="latex_out"></a>
LaTeX output</h2>
<p><a id="a13_LaTeX" name="a13_LaTeX"></a> The generated <img class="formulaInl" alt="{\LaTeX}" src="form_0.png" width="34" height="13"/> documentation must first be compiled by a <img class="formulaInl" alt="{\LaTeX}" src="form_0.png" width="34" height="13"/> compiler (I use a recent teTeX distribution for Linux and MacOSX and MikTex for Windows). To simplify the process of compiling the generated documentation, <code>doxygen</code> writes a <code>Makefile</code> into the <code>latex</code> directory (on the Windows platform also a <code>make.bat</code> batch file is generated).</p>
<p>The contents and targets in the <code>Makefile</code> depend on the setting of <a class="el" href="config.html#cfg_use_pdflatex">USE_PDFLATEX</a>. If it is disabled (set to <code>NO</code>), then typing <code>make</code> in the <code>latex</code> directory a <code>dvi</code> file called <code>refman.dvi</code> will be generated. This file can then be viewed using <code>xdvi</code> or converted into a PostScript file <code>refman.ps</code> by typing <code>make ps</code> (this requires <code>dvips</code>).</p>
<p>To put 2 pages on one physical page use <code>make ps_2on1</code> instead. The resulting PostScript file can be send to a PostScript printer. If you do not have a PostScript printer, you can try to use ghostscript to convert PostScript into something your printer understands.</p>
<p>Conversion to PDF is also possible if you have installed the ghostscript interpreter; just type <code>make pdf</code> (or <code>make pdf_2on1</code>).</p>
<p>To get the best results for PDF output you should set the <a class="el" href="config.html#cfg_pdf_hyperlinks">PDF_HYPERLINKS</a> and <a class="el" href="config.html#cfg_use_pdflatex">USE_PDFLATEX</a> tags to <code>YES</code>. In this case the <code>Makefile</code> will only contain a target to build <code>refman.pdf</code> directly.</p>
<h2><a class="anchor" id="rtf_out"></a>
RTF output</h2>
<p><a id="a14_RTF" name="a14_RTF"></a> Doxygen combines the RTF output to a single file called refman.rtf. This file is optimized for importing into the Microsoft Word. Certain information is encoded using so called fields. To show the actual value you need to select all (Edit - select all) and then toggle fields (right click and select the option from the drop down menu).</p>
<h2><a class="anchor" id="xml_out"></a>
XML output</h2>
<p><a id="a15_XML" name="a15_XML"></a> The XML output consists of a structured "dump" of the information gathered by doxygen. Each compound (class/namespace/file/...) has its own XML file and there is also an index file called <code>index.xml</code>.</p>
<p>A file called <code>combine.xslt</code> XSLT script is also generated and can be used to combine all XML files into a single file.</p>
<p>Doxygen also generates two XML schema files <code>index.xsd</code> (for the index file) and <code>compound.xsd</code> (for the compound files). This schema file describes the possible elements, their attributes and how they are structured, i.e. it the describes the grammar of the XML files and can be used for validation or to steer XSLT scripts.</p>
<p>In the <code>addon/doxmlparser</code> directory you can find a parser library for reading the XML output produced by doxygen in an incremental way (see <code>addon/doxmlparser/doxmparser/index.py</code> and <code>addon/doxmlparser/doxmlparser/compound.py</code> for the interface of the library)</p>
<h2><a class="anchor" id="man_out"></a>
Man page output</h2>
<p><a id="a16_man" name="a16_man"></a> The generated man pages can be viewed using the <code>man</code> program. You do need to make sure the man directory is in the man path (see the <code>MANPATH</code> environment variable). Note that there are some limitations to the capabilities of the man page format, so some information (like class diagrams, cross references and formulas) will be lost.</p>
<h2><a class="anchor" id="docbook_out"></a>
DocBook output</h2>
<p><a id="a17_docbook" name="a17_docbook"></a> Doxygen can also generate output in the <a href="https://docbook.org/">DocBook</a> format. How to process the DocBook output is beyond the scope of this manual.</p>
<h1><a class="anchor" id="step3"></a>
Step 3: Documenting the sources</h1>
<p>Although documenting the sources is presented as step 3, in a new project this should of course be step 1. Here I assume you already have some code and you want doxygen to generate a nice document describing the API and maybe the internals and some related design documentation as well.</p>
<p>If the <a class="el" href="config.html#cfg_extract_all">EXTRACT_ALL</a> option is set to <code>NO</code> in the configuration file (the default), then doxygen will only generate documentation for <em>documented</em> entities. So how do you document these? For members, classes and namespaces there are basically two options:</p><ol type="1">
<li><p class="startli">Place a <em>special</em> documentation block in front of the declaration or definition of the member, class or namespace. For file, class and namespace members it is also allowed to place the documentation directly after the member.</p>
<p class="startli">See section <a class="el" href="docblocks.html#specialblock">Special comment blocks</a> to learn more about special documentation blocks.</p>
</li>
<li><p class="startli">Place a special documentation block somewhere else (another file or another location) <em>and</em> put a <em>structural command</em> in the documentation block. A structural command links a documentation block to a certain entity that can be documented (e.g. a member, class, namespace or file).</p>
<p class="startli">See section <a class="el" href="docblocks.html#structuralcommands">Documentation at other places</a> to learn more about structural commands.</p>
</li>
</ol>
<p>The advantage of the first option is that you do not have to repeat the name of the entity.</p>
<p>Files can only be documented using the second option, since there is no way to put a documentation block before a file. Of course, file members (functions, variables, typedefs, defines) do not need an explicit structural command; just putting a special documentation block in front or behind them will work fine.</p>
<p>The text inside a special documentation block is parsed before it is written to the HTML and/or <img class="formulaInl" alt="{\LaTeX}" src="form_0.png" width="34" height="13"/> output files.</p>
<p><a id="a18_parsing" name="a18_parsing"></a> During parsing the following steps take place:</p><ul>
<li>Markdown formatting is replaced by corresponding HTML or special commands.</li>
<li>The special commands inside the documentation are executed. See section <a class="el" href="commands.html">Special Commands</a> for an overview of all commands.</li>
<li>If a line starts with some whitespace followed by one or more asterisks (<code>*</code>) and then optionally more whitespace, then all whitespace and asterisks are removed.</li>
<li>All resulting blank lines are treated as a paragraph separators. This saves you from placing new-paragraph commands yourself in order to make the generated documentation readable.</li>
<li>Links are created for words corresponding to documented classes (unless the word is preceded by a %; then the word will not be linked and the % sign is removed).</li>
<li>Links to members are created when certain patterns are found in the text. See section <a class="el" href="autolink.html">Automatic link generation</a> for more information on how the automatic link generation works.</li>
<li>HTML tags that are in the documentation are interpreted and converted to <img class="formulaInl" alt="{\LaTeX}" src="form_0.png" width="34" height="13"/> equivalents for the <img class="formulaInl" alt="{\LaTeX}" src="form_0.png" width="34" height="13"/> output. See section <a class="el" href="htmlcmds.html">HTML Commands</a> for an overview of all supported HTML tags.</li>
</ul>
<p> 
Go to the <a href="docblocks.html">next</a> section or return to the
 <a href="index.html">index</a>.
 </p>
</div></div><!-- contents -->
</div><!-- PageDoc -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0 </li>
  </ul>
</div>
</body>
</html>
